package com.employee.service.impl;

import com.employee.mapper.AuthorityMapper;
import com.employee.pojo.dto.AuthorityDto;
import com.employee.service.AuthorityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @AUTHOR 尹书岿
 * @DATE 2025/1/13 17:31
 * @DESCRIBE
 */
@Service
public class AuthorityServiceImpl implements AuthorityService {
    @Autowired
    private AuthorityMapper authorityMapper;
    @Override
    public List<AuthorityDto> getAuthority() {
        return authorityMapper.getAuthority();

    }

    @Override
    public AuthorityDto getAuthorityById(Integer id) {

        return authorityMapper.getAuthorityById(id);
    }
}
